<?php
require_once dirname(dirname(__FILE__)) . '/shared/config/config.php';
require_once DOCUMENT_ROOT . DIR_INCLUDE . 'html_generator.php';
require_once DOCUMENT_ROOT . DIR_SHARED_API . 'api_users.php';
$user_id = filter_input(INPUT_POST, "user_id");
$balance = filter_input(INPUT_POST, "balance");

api_users::update_balance($user_id, $balance);